<?php
include("dbconf.php");
include('head.php');
include('menu.php');
?>
<div id="content">
  <h2>Список пользователей</h2>
  <table border="1">
  <tr>
    <th>ID</th>
    <th>Имя</th>
    <th>Фамилия</th>
    <th>Год рождения</th>
    <th>About</th>
    <th>Дата регистрации</th>
  </tr>
  <?php
      $result = mysql_query ("SELECT * FROM `user`");
      $rowsCnt = mysql_num_rows ($result);
      for ($i = 0; $i < $rowsCnt; $i++) {
      	$row = mysql_fetch_row($result);
      	echo '<tr>
      	        <td>' . $row[0] . '</td>
      	        <td>' . $row[1] . '</td>
      	        <td>' . $row[2] . '</td>
      	        <td>' . $row[3] . '</td>
      	        <td>' . $row[4] . '</td>
      	        <td>' . date('m.d.y, H:i:s', strtotime($row[5])) . '</td>
      	      </tr>';
      }  
  ?>
  </table>
</div>
<?php
include('bottom.php');
?>